/*
 * Copyright (c) gitee.com/jiandong001.
 *
 * This source code is licensed under the MIT license found in the
 * LICENSE file in the root directory of this source tree.
 */

import { YogaMeasureMode } from './YogaMeasureMode';
import { YogaNode } from './YogaNode';

export interface YogaMeasureFunction {
  /**
   * Return a value created by YogaMeasureOutput.make(width, height);
   */
  measure(
      node: YogaNode,
      width: number,
      widthMode: YogaMeasureMode,
      height: number,
      heightMode: YogaMeasureMode): number //long
}
